<!--responsive view logo start-->
<div class="logo dark-logo-bg visible-xs-* visible-sm-*">
    <a href="index.html">
        <img src="<?php echo Yii::$app->request->baseUrl; ?>/upload_files/init/logo20x20.png" alt="">
        <!--<i class="fa fa-maxcdn"></i>-->
        <span class="brand-name">二狐系统后台</span>
    </a>
</div>
<!--responsive view logo end-->

<div class="sidebar-left-info">
    <!-- visible small devices start-->
    <div class=" search-field">  </div>
    <!-- visible small devices end-->

    <!--sidebar nav start-->
    <ul class="nav nav-pills nav-stacked side-navigation">
    	<li>
            <h3 class="navigation-title">功能管理</h3>
        </li>

        <li class="menu-list<?php if(substr(Yii::$app->request->pathInfo,0,4)=='game' || substr(Yii::$app->request->pathInfo,0,7)=='article'):?> nav-active<?php endif;?>">
        	<a href="javascript:;"><i class="fa fa-bank"></i> <span>游戏管理  </span></a>
            <ul class="child-list">
                <li<?php if(in_array(Yii::$app->request->pathInfo,['article/index','article/edit','article/save','article/delete'])):?> class="active"<?php endif;?>>
                	<a href="<?php echo \Yii::$app->urlManager->createUrl('/article/index'); ?>"> 游戏资讯</a>
                </li>
                <li<?php if(in_array(Yii::$app->request->pathInfo,['game-type/index','game-type/edit','game-type/save','game-type/delete'])):?> class="active"<?php endif;?>>
                	<a href="<?php echo \Yii::$app->urlManager->createUrl('/game-type/index'); ?>"> 游戏类型</a>
                </li>
                <li<?php if(in_array(Yii::$app->request->pathInfo,['game-state/index','game-state/edit','game-state/save','game-state/delete'])):?> class="active"<?php endif;?>>
                	<a href="<?php echo \Yii::$app->urlManager->createUrl('/game-state/index'); ?>"> 游戏状态</a>
                </li>
                <li<?php if(in_array(Yii::$app->request->pathInfo,['game/index','game/edit','game/save','game/delete'])):?> class="active"<?php endif;?>>
                	<a href="<?php echo \Yii::$app->urlManager->createUrl('/game/index'); ?>"> 游戏管理</a>
                </li>
                <li<?php if(in_array(Yii::$app->request->pathInfo,['game-notice/index','game-notice/edit','game-notice/save','game-notice/delete'])):?> class="active"<?php endif;?>>
                	<a href="<?php echo \Yii::$app->urlManager->createUrl('/game-notice/index'); ?>"> 游戏公告</a>
                </li>
                <li<?php if(in_array(Yii::$app->request->pathInfo,['game-beta/index','game-beta/edit','game-beta/save','game-beta/delete'])):?> class="active"<?php endif;?>>
                	<a href="<?php echo \Yii::$app->urlManager->createUrl('/game-beta/index'); ?>"> 游戏系数</a>
                </li>
                <li<?php if(in_array(Yii::$app->request->pathInfo,['game-version/index','game-version/edit','game-version/save','game-version/delete'])):?> class="active"<?php endif;?>>
                	<a href="<?php echo \Yii::$app->urlManager->createUrl('/game-version/index'); ?>"> 游戏版本</a>
                </li>
            </ul>
        </li>

        <li class="menu-list<?php if(in_array(Yii::$app->request->pathInfo,['friend-links/index','friend-links/edit','friend-links/save','friend-links/delete','advertise/index','advertise/edit','advertise/save','advertise/delete'])):?> nav-active<?php endif;?>">
        	<a href="javascript:;"><i class="fa fa-gear"></i> <span>系统设置</span></a>
            <ul class="child-list">
            	<li<?php if(in_array(Yii::$app->request->pathInfo,['advertise/index','advertise/edit','advertise/save','advertise/delete'])):?> class="active"<?php endif;?>>
                	<a href="<?php echo \Yii::$app->urlManager->createUrl('/advertise/index'); ?>"> 广告管理</a>
                </li>
            	<li<?php if(in_array(Yii::$app->request->pathInfo,['friend-links/index','friend-links/edit','friend-links/save','friend-links/delete'])):?> class="active"<?php endif;?>>
                	<a href="<?php echo \Yii::$app->urlManager->createUrl('/friend-links/index'); ?>"> 友情链接</a>
                </li>
            </ul>
        </li>

        <li>
            <h3 class="navigation-title">报表统计</h3>
        </li>
        <li class="menu-list">
            <a href=""><i class="fa fa-bar-chart-o"></i>  <span>用户报表</span></a>
            <ul class="child-list">
                <li><a href="###"> 用户统计</a></li>
                <li><a href="###"> 游戏下载排行</a></li>
            </ul>
        </li>
    </ul>
    <!--sidebar nav end-->

    <!--sidebar widget start-->
    <div class="sidebar-widget">
    </div>
    <!--sidebar widget end-->
</div>
